﻿using System;
using System.Collections.Generic;
using System.Web.Mvc;
using Netkk.Common.Models;

namespace Netkk.Models
{
    public class RegistrationModel
    {
        public Guid AppointmentId { get; set; }
        public string FirstName { get; set; }
        public string LastName { get; set; }
        public string Email { get; set; }
        public IEnumerable<SelectListItem> Appointments { get; set; }

        public Registration MapRegistration()
        {
            return new Registration
                       {
                           AppointmentId = AppointmentId,
                           FirstName = FirstName,
                           LastName = LastName,
                           Email = Email
                       };
        }
    }
}
